import os
import json
from db.db_supplementary import check_folder
from telegram.telegram_ui import database_connection
from config import FilesUsage


class ClockSettings:
    """
    class which is dedicated to work with the settings of the clock notifications
    """
    def __init__(self) -> None:
        self.folder_json = os.path.join(FilesUsage.folder_current, FilesUsage.folder_storage)
        self.file_json = os.path.join(self.folder_json, FilesUsage.file_name_json)

    def check_basics(self) -> None:
        """
        Method which is dedicated to fully check the presence of our files
        Input:  None
        Output: we fully checked the values of the values
        """
        check_folder(self.folder_json)
        if not os.path.exists(self.file_json) and os.path.isfile(self.file_json):
            self.produce_file_json()

    def produce_file_json(self) -> None:
        """
        Method which is dedicated to create the basic json file for the values
        Input:  None
        Output: we developed json for the values of it
        """
        pass